package com.tywj.panda.customer.im.receiver

import android.content.Context
import io.rong.push.PushType
import io.rong.push.notification.PushMessageReceiver
import io.rong.push.notification.PushNotificationMessage

/**
 * <pre>
 *     author : June Yang
 *     time   : 2020/7/7
 *     desc   : 自定义推送
 *     https://docs.rongcloud.cn/v3/views/im/ui/guide/system/notify/push/rong.html
 *     version: 2.0.0
 * </pre>
 */
class CustomerReceiver : PushMessageReceiver() {

    override fun onThirdPartyPushState(pushType: PushType?, action: String?, resultCode: Long) {
        super.onThirdPartyPushState(pushType, action, resultCode)
    }

    override fun onNotificationMessageClicked(p0: Context?, p1: PushType?, p2: PushNotificationMessage?): Boolean {
        return false
    }

    override fun onNotificationMessageArrived(
        context: Context,
        pushType: PushType,
        notificationMessage: PushNotificationMessage
    ): Boolean {

        when (pushType) {
            PushType.XIAOMI -> {

            }
        }
        return false
    }
}